package kr.co.mustgo.model.dao.membership;

import java.sql.SQLException;
import java.util.List;

import kr.co.mustgo.domain.membership.Membership;



public interface MembershipDAO {

	public abstract int insertMembership(Membership membership) throws SQLException;
	public abstract int updateMembership(Membership membership) throws SQLException;
	public abstract int deleteMembershipById(String id) throws SQLException;
	
	public abstract Membership selectMembershipById(String id) throws SQLException;
	public abstract List<Membership> selectMembershipList() throws SQLException;
	public abstract List<Membership> selectMembershipByName(String name) throws SQLException;

	public abstract List<Membership> selectMembershipListPaging(int page) throws SQLException;
	
	//총 회원의 수 조회
	public abstract int selectRowCount() throws SQLException;
	
}//end class
